import { IFeidaoAiBrowserComponent } from '@feidao/web/interfaces';
import fire_component_msg from '@feidao/web/atom/browser/fsm/fire-component-msg';
import _hide from '../atom/hide';

export default async function a002(fd: IFeidaoAiBrowserComponent, ...args: any[]) {
	//  确定
	const id = fd.data.id;
	if (!id) {
		fire_component_msg('zj-common-002', 'ec-001', 'fail', '请选择员工');
	} else {
		const name = fd.data.name;
		fire_component_msg('zj-qualification-002', 'ec-002', id, name);
		_hide(fd.data.node);
	}
}
